package com.group4.datafactorybackend.entity.DO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * @author 卑微小峰
 * @date 2022/8/13
 * @description 码表实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("stopwatch")
public class StopwatchDO {

  /**
   * 表ID
   */
  @TableId(type = IdType.AUTO)
  private Long id;

  /**
   * 码表编号
   */
  @TableField("stopwatch_code")
  private String stopwatchCode;

  /**
   * 码表名称
   */
  @TableField("stopwatch_name")
  private String stopwatchName;

  /**
   * 码表说明
   */
  @TableField("stopwatch_illustrate")
  private String stopwatchIllustrate;

  /**
   * 码表状态
   */
  @TableField("stopwatch_status")
  private Integer stopwatchStatus;

  /**
   * 创建时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(value = "create_time",fill = FieldFill.INSERT)
  private Date createTime;

  /**
   * 修改时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(value = "update_time",fill =FieldFill.INSERT_UPDATE)
  private Date updateTime;
}
